﻿using LJ.StreamSystem.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.StreamSystem.LazyHare.Transport.Abstractions;

public class StreamSystemTransportData(IDictionary<string, string?> headers, string body)
{
    public IDictionary<string, string?> Headers { get; } = headers ?? throw new ArgumentNullException(nameof(headers));

    public string Body { get; } = body;

    public string SummaryBody { get; set; }=string.Empty;

    public string GetApplicationId()
    {
        return Headers[StreamSystemHeaders.ApplicationId]!;
    }
}
